
//Api接口测试
export class ApiExamples{

    //获取用户头像权限
    getUserInfo(){
        return new Promise(function (resolve, reject){
            wx.getUserInfo({
                "success":function(res) {
                    console.log(res);
                    resolve(res.rawData)
                }
            });
        });
    }

    login(){
      wx.login({
        "success": function (res) {
          console.log(res);
        }
      });
    }

}